

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-21
 * Time: 12:12
 */

class MarryArray<T>{
    public Object[] array=new Object[10];

    public void setValue(int pos,T value){
        array[pos]=value;
    }

    public T getValue(int pos){
        return (T)array[pos];
    }
}
public class Test {
    public static void main(String[] args) {
        Double m=Double.valueOf(300.0);
        Float n=Float.valueOf(10F);
        String s=String.valueOf("123");
        Character ch=Character.valueOf('a');
        Short sh=Short.valueOf((short)123);
        Long l=Long.valueOf((long)123);
        Byte b=Byte.valueOf("lala");
        Boolean bool=Boolean.valueOf("lala");
        Integer i=Integer.valueOf(123);
    }
    public static void main1(String[] args) {

//        MarryArray marryArray=new MarryArray();
//        marryArray.setValue(0,"lala");
//        marryArray.setValue(1,13);

        Double a=100.0;
        Double b=100.0;
        System.out.println(a==b);

        Double c=200.0;
        Double d=200.0;
        System.out.println(c==d);

        Double m=Double.valueOf(300.0);




    }
}
